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.
Merge pull request #2 from strongloop/fix-browserify

index,test: support browserify