Add template support to ResourceLoader

separate javascript templates into html templates
update MFResourceLoaderModule
todo: add tests

Change-Id: Id471fb83748bd44775dad5f266344a7b904e2cc7
Merge "Add template support to ResourceLoader"