refractored dropbox client into a separate model

Now all dropbox.js functionality is wrapped in models/dropbox.js
Now both for example the user and the add views can use these functions.