Add a small stubbing library

This provides a robust solution for temporarily stubbing (and
unstubbing) methods. It will be used internally by the strong parameters and
delegation matchers.

----

Also, for those of you wondering, I did try investigating stubbing libraries I could require as a dependency but they were not specific to our needs.