HER-1726: Templatize HTML

Removing raw html string creation and replacing with freemarker templates.
Unified data models used to generate XML and HTML representations