When Robots Walk Into Banks: How to Build an Economy Where Autonomous Machines Cannot Do Evil