Abstract out the Html templates for Metadata without impacting on performance.

HtmlTemplates are now outside in a separate folder as '.html' files as embedded resources which are loaded once during initialization into a string. Much easier to edit them now without impacting on the performance.