Changes to aid in testability.

Added a new constructor that accepts a TemplateLoaderConfig instance, instead of the CDI Instance type.