Get rid of $rootScope

Replace `$rootScope.nextAfterLogin` with `$location.nextAfterLogin`.

Move `$rootScope.currentUser` to a new service `AppAuth`.