Added templates with Mustache
Added mustache support, refactoring