started to move session handling to a new sessionManager and impemented a basic middleware for session handling (not yet finished)