Refactored Handlers to give a nicer external interface/module structure
Moved login/logout handlers to a sperate module
Wrapped the site in a session handler to update expirytimes. Potentially could cause performance issues in the future but is a much better interface.
merge blairs refactorings into new work on discussions in master