Fix npm publish problems and .gitignore.

See
http://stackoverflow.com/questions/17990647/npm-install-errors-with-error-enoent-chmod