Working dropbox authorization implementation