SettingsCtrl now sets $rootScope.authorized bool.