Custom session

Ability to set custom session factory