Update template engine to know of templates in folders.

Template name is no longer basename - extension, it's path relative to view directory + basename - extension

This means that you can autoload views from within directories with the same name as ones in other directories without collisions.

e.g.

/test/index
and
/index

no longer clash
`templateName` has already been declared above so we should lose the `var` here.