Web UI Conversion to freemarker templating

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