First draft of backoff-retry logic for rest backends.