Refactored login and controllers.
Added persistent login.
Moved auth-related classes around.