Refactorings. Prepared to clone sessions etc.
Decided to support only one session per connection.