Add basic HTML templating with jinja2, and modify tests
accordingly.