Added initial templating system

Needs additional template rules adding and refactoring into nom module