Add an api for customising how verifying doubles are checked

This is a prerequisite for rspec/rspec-rails#1238
I don't see the benefit in stubbing `on_declaring_verifying_double` over calling `when_declaring_verifying_double` (with the `"with isolated configuration"` shared context included to ensure isolation). I prefer sticking to public APIs in our specs as it gives us greater latitude to refactor.