Add template_class keyword argument to renderer class.

Allows for processing by NewTextTemplate, etc.
Add flexmock to requirements.txt
Merge branch 'custom-template-class'