Refactor src/ modules and build + packaging process

Why? It needs to close over the passed-in `Handlebars` instance.