merged Client Connection and Network classes, fixed a bug allowing for proper
connecting and disconnecting from a broker