Update all old-style stubbing and mocking.

This mostly replaces stub with allow, but there are some other
deprecated things like stub_chain, unstub, and any_instance that also
had to go.