Cleans up bugs in registration

Usernames are now automatically changed to lower case on the client side
before being processed.

Server response messages are now more informative strings instead of just
true and false. Eventually responses should be turned into JSON just to
keep everything consistent on both sides.

Other random things hacked at.