small refactoring

- use console.debug for log.debug calls
- ditch $rootScope.emit/on indirection, not worth it
- start moving some logic from RootCtrl to run block