Exports for Node.js and Browserify

Has with backwards-compatibility for the old `require()` API. If we're in the browser, export as a standard global object.