Fixed minor typo.
NetworkManage implementations can take a time function for unit testing.
Removed debug code.
Fixed segfault when the client times out. Caused by erase during iteration.
Stated adding code to simulate latency and packetloss.
Test client timeout, removed debug code, removed duplicate code.