adds rudimentary session managment in order to fix issue #114
Merge pull request #189 from HenrikJoreteg/add-session-managment

adds rudimentary session managment in order to fix issue #114