Fix dropbox sign-in issue.

Must keep full fragment around when redirected from Dropbox, including Dropbox's stuff.
Had to fix redirect to #new-file.
Was trying redirect before hash_index was populated, which means it was redirecting everytime, hence wiping out other stuff in the fragment.