Skeleton implementation of server/client code

This ought to be merged into master now, as it hardly qualifies as a skeleton anymore.