Add chef_managed property to instances managed by chef, use the node's name as the instance name in the config, fix bundle install when gems require sudo