Added support for twig templating.

Implemented twig templating using the Twig.js lib.