Clean up app.js

 - Move controllers, services & constants to their own files
 - Clean up code
Update login/logout & authentication functionality