Refactor session handling
Merge branch 'techdivision'
Merge pull request #27 from wagnert/master

Refactor session handling