bug 1089238 - use test/httpd to simulate readyState timings

I think we should do this is a separate commit, like one for [bug 1072396](https://bugzilla.mozilla.org/show_bug.cgi?id=1072396) or a more specific bug.