Minor update for readme, package.json, and restApi.js

1, include .gitignore file,
2, update package.json to use the latest dependent modules,
3, add more details in readme
4, correct the restApi.js file to make the api work