Sorting out dropbox authentication