working on the tex template..
"major" rewrite.

- reSt -> (pandoc) markdown
- Cheetah -> Jinja2
add email fallback to references.