Change wait_port() API to take max_wait seconds, and wait exponentially 

Instead of specifying sleep interval and retry, let users specify the maximum wait time, then use exponential sleep counter, starting from 0.001 - which takes the best of both fast initial check, as well as tolerant wait intervals for a slow server.

cc @kazeburo