Switch to common.js require, browserify, and istanbul.

This probably requires more polish, but seems like it works :)

Currently the license doesn't end up at the top of the generated file, and the shim modules are a bit weird.