stop before reset
added micronrc
tweak upgrade script
add correct api-auth gem
fixed nginx config
stop agent first
fix manager stop
added extra tests on agent register