Fix for issues relating to subprocess imports and BRANCH checks
Shutdown/restarts now wait for Tornado to finish shutting down before proceeding further
Switched a logger error to a logger debug
Fixed massEdit issues.