Improved integration with Groovy 2.3.1

This PR demonstrates how you can leverage the new template resolver in Groovy 2.3.1 to work around the locale issue, and avoid creating a new template engine, dramatically improving caching.

This cannot be merged as is, until Groovy 2.3.1 is out.