Use only site name in error template title
Cleaned up class Session
Added dynamic lifetime control to class Session