Factor out proto.js

 - Modified .gitignore so files under src/node_modules/ get tracked.
 - Tested breakage by `make run-dev`