Changing the $user service to be available globally in the $rootScope with 'currentUser'
Also adding 'loggingIn' to the $rootScope.
Thanks to @davidyaha for the idea