Fixed some problems with character creation not saving the gender. Also, more importantly, fixed the login and character creation to use sha1 hashes instead of plaintext passwords.