Move auth logic to application controller
Merge pull request #3 from di36ofp/move_authentication_logic_to_application_controller

Move auth logic to application controller