MOD: use handlebars 1.0.12
ADD: publish & upgrade script
Split compile logical to lib