Updates to Browserify v2, adds tests.