Add package.json for npm-based install
Some changes for overall build, and npm-compatibility.
(Still learning...)