support twig templates.
fix render template action class.
[templates] add twig paths, reuse layout from core, add tests.
Merge pull request #141 from formapro-forks/templates

[WIP] support twig templates.