Redirect on login and logout confirmed calls

* Configurable redirect after logoutConfirmed is called.
* Confgiurable redirect after loginConfirmed is called. Added this back so it can be unit tested outside of the login function.
* Fixed some lint errors - found a no-no issue with server.apiRoot being used by the authInterceptor. This will need to be addressed.
Line 72. Function is a callback and won't have this defined as this object. That is needed.