added jinja2 template system and rewrote the static ones
cosmetic changes in templates
Merge pull request #4 from jchrusciel/bug_666

added jinja2 template system and rewrote the static ones