Middleware Mess, workinprogress.
Middleware	modified:   lib/middleware/html/template.js
Work in progress
A solution I'm content with for now
Added the rest of the templates, added tests for the template functionality
Merged in new middleware & template functionality from other branch