[WIP] Jinja migration

Changes to commitment, api and cache_header templates