Registration updates, Pre-phonegap test

This update concludes the registration process, with the exception of
creating user accounts. This will (hopefully) be used to package a
phonegap app for the first time.