Added common classes for the network client/server code.