NPM welcome.

Closes #572.
Merge pull request #575 from djanowski/package-json

NPM welcome.