Bug 1014686 - [Messages][Refactoring] Improve "html template string" to "dom node\fragment" conversion. Added Template.prepare method

Yeah, totally makes sense. If consumer code needs to reuse template a lot, it can cache documentFragment\string by itself