Will a robot take your job? And how should we treat our mechanical cousins.