Add client/server example code.

Things basically seem to work at this point, but it's only undergone
simple testing.