A General Safety Framework for Autonomous Manipulation in Human Environments