tidy sudo commands, and introduce an improved technique which we use when passing nested commands to sudo
fix JS logging
temp fix for mgmt start and mgmt stop race causing deadlock
replace confused DATA_DIR with MGMT_BASE_DIR and ONBOX_BASE_DIR, fixing #1172

Conflicts:
	software/base/src/main/java/brooklyn/entity/chef/ChefLifecycleEffectorTasks.java -- some of the updated chef has snuck in here so it won't build until that PR is merged