Adding URL state for upload, login, and register dialogs.

This is a bit hackish at the moment, but I think this is a nice feature.
There are probably some ways we can refactor things.

:construction: