wip: write yaml metadata with jinja2
This is a radical approach to write yml metadata files exactly the way our maintainers like them. Instead of using a yaml library for writing metadata files, this will write markup using jinja2 template engine.
(This is currently is an experiment not a practical solution.)
closes #611