Extracted template loading to provide extension points.
Merge pull request #138 from jakzal/code-generator-templates

Extracted template loading to provide extension points