Added package.json for npm compatibility.

It may not be necessary for many people, but there's no harm in also providing a package.json for those who prefer to express a dependency on this library with npm.