Add main module

Move header & footer to main
Added support for namespaced templates
Added inventory module

It also has a body view, and is stored in template cache as 'inv-body'.