Moved app-level controller to its own file.
PERSISTANT LOGIN ACQUIRED.