Added connectWhenReady feature

Added connectWhenReady feature that waits until the serial port is free
and then connects to the arduino.