Moving application controllers out of the Global scope and registering them with the $controller service.
Preliminary unit test support.