Generalize ConnectStream and ServeStream functions to simplify test setup in libmultiprocess and bitcoin core code (in followup https://github.com/ryanofsky/bitcoin/commit/990f259a9dd60473d247218bf579c57893319ced). Also add an incomingConnections accessor so Bitcoin Core code does not need to directly access the incoming connections list to disconnect clients.
These changes help with #336 by getting rid of external code that would need to change with its changes to the Connection representation.