Implement client-connect.

This is mostly done, the connectee still needs to do something with
the "connect" message.