Some reorganization so we can have libraries.
Split the RPC client code out into its own data type.

This makes it much easier to write a client to connect to blubberstore
and use it.