Auto-subscribe to $rootScope and $httpProvider
Fix whitespace