Fix Browserify issues

Load extensions using simple require() and index.js
Also don't load anything if we're in a browser.

Fixes #50