Initial version of request retries. Also includes ability to set connect/inactivity timeout.