Factor out proto.js

 - Modify .gitignore to track files under src/node_modules/
 - Breakage was tested through `make run-dev`