WIP: Fix server sessions (InMemorySession and ShelveSession)

For now I removed duplicated code from `serverbb`. Previously logic was duplicated in all three session types. Now there is one abstract class and data storage adapters for supported data stores. `InMemorySession` still doesn't work and `ShelveSession` requires data store access management.