Specify main and dependencies for npm.
Merge pull request #119 from aranja/npm-support

Support npm as a client-side package