initial checkin of #2297 remove protobufjs dependency

Replaces compiling the protobuff definition into .js form with a script the pulls out just the constants.
minor bugfixes