updated middleware example
Added template manager
better errors displaying on template parse error
TemplateManager automatically add the {{define "template-name"}} based on template path