First draft of user registration, and added a few more things.