Make check-origin-is-up loop more readable

* remove the use of a magic number for sleep duration
* break out quickly if maxRetries hit
* explicit comment as to why we are sleeping before break
  in success case.
Pass edgeHost as string to testOriginIsEnabled

There isn't a need to pass edgeHost as a pointer, so
lets not bother. It's more readable as a string.