Sessions + Refactored Project Code

Refactored some code in the Sessions controller (tidied it up), and
deleted some unused classes.