Added user class. Authentication is pretty much complete, though not yet tested.