Moved client comm to a class

We've C++-ified the communication routines for the client.  In order to
limit the number of global functions, we've moved all of the specific-
purpose sending routines (send_ack, send_login, etc.) into the class
itself.