HTML templating and improved error handling for session pages (closes #5)