Reorganized the code, added autoloading, changed the User class.