Work in progress on sessions, successfully tested redirecting when not logged in.
Implemented sessions, need to do some testing
Resolved merge conflicts