Add "main" property to package.json

Allows use as a Browserify module.
Merge remote-tracking branch 'OliverJAsh/patch-1' into dev