wait_for is a primitive polling routine and is_tcp_ready is simple TCP
port checker. SetupFailure will be needed to generalize setup errors
involving explicit checks and giveups.
Currently needed for more robust setup in lmi.test.ind but could be
useful in other places,