Abstract templating

Hello again.
I replaced hardcoded strings with html by abstract Template methods. It is better because these methods could be redefined and replaced, for example, by precompiled underscore templates.
I splitted all templates into two groups. First contains templates with classnames and selectors that are present in other code (besides CSS), and the second contains templaes that can be totally changed.
Simple examples and tests are also provided.