Two new protocol files and better CMake integration.

From the protocol compiler output, a static library is generated against
which the other programs may be linked.