Add compatibility with commonjs and browserify

Adds a commonjs export and package.json so this can be packaged with commonjs bundlers. Had to move `this` in the wrapper call to `window` since `this` is the current module in cjs environments.

If [eventie#3](https://github.com/desandro/eventie/pull/3) gets merged I can move the package json dependency to desandro/eventie