Flesh out Backbone user features.

* Fix issue where dashes in username regex were unescaped.
* Add serializeObject method to convert form data to JSON.