Login updates

Login now required to access certain parts.
Implemented sessions to keep track of who is logged in. Included a log
out function. Still doesnt differentiate admin from normal user. That is
to come.