A bunch of glue code to make it very easy to build client-server style
protocols.
