Use browserify/require() for client-side code
Remove ThroughStreams
Wrap generated code in an IIFE so we can declare bundle-level "globals"

Also added comments to explain the various stages of the build process
use jed via npm rather than bundling it ourselves
Remove list of debug files from httphandler.js
Expose the kiwi global using global['kiwi'] rather than global.kiwi
use node's url module for getQueryVariable()
Use npm versions of Backbone and Lodash in the client
Simplify scripts list in generateSettings