One should be able to extend config

One should be able to overwrite default templates dir, for example I have inside javscripts dirs `frontend` and `backend` and only one of them is using handlebars. Moreover I need proper path inside `TEMPLATES` array.