Added sessions resource
Add some code from old project