Generate library version of RPC message defns

Generate library version of RPC Protocol Buffer message definitions,
`.c` and `.h` files.  Also, generate a header containing union message
types for device-to-device queries.

See #12.