Templating: initial implementation

This only replaces the current output
implementation with a Jinja version.

No support for custom templates yet (although
someone could now modify the default template).

Change-Id: Ief9ba5c5ce374d2223ae4f01440a38d6841d3cac