Improve extensibility

Refactored some TemplateProcessors to make them easier to subclass;
still need to refactor others (Builder, Interface, and Entity).