CM-06: Handlebars like template refactoring

Refactoring templates using handlebars like template declaration.
Updating require-text dependency, this one will be minimized later