Moving the raf stuff into a class rather then functions with gloabl state.
Reworking the test-runner state transitions to make both running and posting only allow one at a time.
Merge pull request #364 from mithro/testharness-refactor

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