Cleanup, deprecated, and get the tests passing again.
bzrlib.builtins.merge is heavily used by the test suite, though it is really the wrong place for a function like that. lazy imports work badly with doctests, but so far none of the doc tested modules had anything worth testing in that fashion.