Added Handlebars templating and support for cookies and sessions.