Changed $.fn.applyTemplate mechanics

applyTemplate() expects a template to have a single root node. Appending the root node to the single
node applied to the function creates a unnecessarily nested structure. In addition, this removes
the possibility to add nested DOM nodes, like a table content structure, to a <table/> node.
With the change, instead of the whole template, only the template root node's children are appended
to the element the template is applied to. Consequently, now, a template definition may have a DOM
structure that completely represents an HTML segment.

Change-Id: Idfa84a66b4d3b6c0305bb89ebba26b16388fe56d
Merge "Changed $.fn.applyTemplate mechanics"