Added User class, login functionality, User sessions, and a variety of functions. Abstracted login form to template.