add main to package.json

The package.json file is missing a main attribute.  Without this the module cannot be required by node.js or, more importantly, browserify.