Make timeout for retrieve/deploy configurable

Add pollWaitMillis option to configure the time to wait between
polling for retrieve/deploy results.

Add maxPoll option to configure the maximum number of times to poll for
results before timing out.