index,test: support browserify

Move the conditional require from /index.js to /test/bootstrap/index.js.

This allows browserify to process the module and makes the code more compliant
with upcoming ES6 modules.

Closes #1.