Reworking test-runner and cleaning up the realtime runner stuff a little.

(This cleanup make the Firefox fixes easier.)