Changed replay webservice to block until items are added.

Removes race conditions that could affect unrelated tests if one
fails.