Better tracking of test completion, error handling.
Better tracking of test completion, error handling.

 - Handle ENOTCONN in TestThread.
 - Keep track of how many routers we have finished testing.
 - Cleanup pending_streams.
 - Cleanup some debugging info and stale code.

hbock/torbel