Cleaned up the build system, fixed build dependencies, upgraded
handlebars

Reason: we needed a new handlebars version
and...

the maintainers of the packages that the build system depends on really
screwed their shit up so npm install no longer worked and kept failing in
dependencies of dependencies.