Add wrap_in option.

A resulted output data is wrapped in a specified html element.
Speed up a template applying.

Now we make a prepared template on "new htmltmpl()" call. And applying
use this prepared template and must be faster if we apply a template more
than one time.
test.html: add console.log() call for a debug purposes.
test.html: add a text data in unit 0.
test.html: some reordering of tests.