CMS-4397 Implement basic session handling. Implemented simpleSession that should be used for mocking and testing.