Public session

Add interface for Session and add getter in server container.

Refs #4863 

@DeepDiver1975 @karlitschek @icewind1991