make the DefaultTemplateFormatter a var
add convenience funcs
collapse newlines in template
add DefaultJSONFormatter