Experiment to improve sessions timeouts.

Refs #539 #344 #297
Minor extra class test
Some generic error correction for user template
Changelog
Undoing session fix
Close the session early when viewing files
Update to Cherwell to set the profile user
Moving the session close code
Re-adding bookmark to the bookmarklet