Two minor optimizations in heavily used code paths.
Release 0.9.4.
Start on 0.9.5.
Move refs tests to dulwich.tests.test_refs.