DRY up the client tcp transport, separate the sweep interval from the re...

...quest timeout (to reduce the standard deviation there), add in optional logging on the server, and a new test to make sure client reconnect functions.