Move in code from RSpec::Mocks::RecursiveConstantMethods

As discussed in rspec/rspec-core#1580, transferring the `RecursiveConstantMethods` module to this gem so it can be used by rspec-core to safely look up constants without checking ancestor objects.

I also added specs for the module since it was only tested indirectly through the the constant mutation examples in rspec-mocks.