Templating engine finished.

Added the templating engine which makes it easy to have full control
over the HTML.