Refactor session handling
Make PSR-2 compatible
Merge pull request #10 from wagnert/master

Refactor session handling