Failure detector

Please see https://github.com/apanda/faketest for an example of usage.