Monkey patch in synchronous test helpers.

These methods make it easy to test code involving deferreds in a synchronous
and deterministic manner, rather than having to spin the reactor.