Twig templates are now a type of their own.

Here's a cleaner pull request.
This enables us to use layout extensions (instead of the lithium two step rendering).
Tests need to be updated but the library works correctly :)