Add jinja2 templating support for yaml documents.

- Add testes to ensure jinja2 filters, functions, tests and context
  work as expected.
- Add ability to patch yaml documents.