A current radio program is in the futurist vein of this subject, James Burke prediction is that in about 50 years we'll all have our own nano factory making
everything we need, from food through clothing to hardware, all using completely free resources.
According to him none of us will need to work and there'll be no need for money or even governments. If he's right there could be no prospect of machines taking over since we'll have ceased creating that type of machine ability.
You can listen to his program on the i-player
on this link
.