New compiler pass for add a new templating and twig resources

Hi, very usefull bundle.
We need this change because the older implementation breaks the twig resources array.
Moving this to a CompilerPass, is ease to build the container.

Please, merge this pull request.
Thanks!