kill cruft
improve logging
generalize 'waiting until an url is responsive' into a function.