Replaced ad-hoc templating with tornado templating
Merge pull request #6 from kennib/templating

Replaced ad-hoc templating with tornado templating