Adds caching back to TwigServiceProvider as well as templated error handling.