Refactored out isLogged in check out of AuthenticationController, added ...

...Factories (unused still)