Login/Logout/Sessions

Got login and logout functionality working, as well as sessions to stop
users who are not logged in being able to access pages they shouldn't be
allowed to.