Add 'main' to package.json

... so that it can be used as an NPM module..
Merge pull request #897 from peter-dudbridge/patch-1

Add 'main' to package.json