Refactor templates.

See tpl/README.md for further info.
Merge branch 'master' of https://github.com/Phyks/Freeder