Add tools/genproto.js to generate .proto files from models.