New account registration

Can now be done via AJAX, so data is remembered on failed attempt.
Found a minor bug in how we determine UPDATE successes.