Removing Handlebars dependency

This PR replace Handlebars dependency by simple templating function. The code isn't getting any bigger but it may loose some of it's previous flexibility provided by `Handlebars.compile`. For now the test suit is passing, but there may be some edge cases. Please consider if it is worth to go this way.