Export module, add package.json.

This adds a basic module.exports and `package.json` for [browserify](https://github.com/substack/node-browserify) compatibility and inclusion in [npmjs](https://npmjs.org/).