Integrate protoc-js plugin into the build system

Closes #853
Review 619 by @srh