Style cleanup and dead code elimination
Stripping extra spaces in the build template

To conserve on the bytes :)
Using local require function instead of the global

It is important to use the plugin-local version of require so as not to
be subject to contexts of the global.