new way of creating extensions for twig
Merge pull request #2457 from ricardclau/update_twig_extension_creation

[Cookbook][Templating] New way of creating extensions for twig