Make the tests work in browserify

This is done by generating a lib/testFiles.js at prepublish time, so that you can use the .mocha() method to run the tests.