Implemented new Template engine

A new bare bone template engine has been implemented