Provide mechanism for adding helper functions to templates from calling applications.
Add debug mode distinction; pretty-print JSON/XML if true.