Added retry_wait parameter for waiting between retries.

Good when using serverspec to wait until a process has gone up, etc.