Use promise pattern inside MWTemplateDialog in order to download TemplateData (currently just mocked) asynchronously.

Change-Id: Ib23521cf40a80cc82872de82d3935414ef385d21
Merge "Use promise pattern inside MWTemplateDialog in order to download TemplateData (currently just mocked) asynchronously."