Fixed some design problems with network level. Server and client gateways now have their own connUp and connDown callbacks.