Support for advanced templating

Switches the template language to Twig, which allows more advanced templating and static site generation.