refactored Connection to take a Network in the ctor
standardized variable names
decoupled Connection and Client (they are no longer friends)