Add package.json specifying Node.js build dependencies.

Also adjusts configure.ac to find and prefer project specific
module and command versions for the dependencies.