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.
I mean you can use 
```` authFunctions.loginConfirmed ````
 no?