Started the customisation of the session and login/logout handling. Removed error handling from main application script it will mute into a Plack middleware (WIP)