Improved dropbox.js usage

Moved dropbox.j setup to initializer and added loggedin status to the application controller, and a login action.