Add package.json and dev dependencies

Now to run make's `test` and `jshint` tasks you can install dependencies using `npm install`.