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

Refactor session handling