modified session controller and routes.
refs #98.
Merge branch 'develop'