add twig as possible template engine for rendering components

this is useful for:
- template inheritance
- autoescaping
- better syntax