Adding a function for parsing query strings.
Cleaning up dialogs and routing through a better global handler.

This also includes better urls and an upgrade of backbone.