refactoring authentication
cleaning up login controller
extracting authentication
disabled newcap jshint rule
generalizing authentication module
extracted application-specific authentication
changed FirebaseUser interface to get/set pair
removed a semicolon
added an application-specific User abstraction over the FirebaseUser
added missing dependency
refactored the FirebaseAuthentication service with cleaner and faster auto-login and better API
fixed the login error dialog not showing after one error had already been shown
now controlling the login error dialog with a custom service instead of a ng-polymer-elements boolean binding
extracted the mutator pattern
removed FirebaseUser
refactored FirebaseAuthentication so that the login method returns an augmented promise (this allows it to be used to get the user, so getUser was removed)
prefixed FirebaseAuthentication service (-> hgFirebaseAuthentication) to avoid conflicts
replaced User service by Authentication service that abstract over hgFirebaseAuthentication
added a configurable AuthenticationRouter service to handle redirects from and to the login page
placing the login view where it belongs