refactored session purge
Merge branch 'master' of https://github.com/marwoodandrew/superdesk-server