Fixed compatibility bugs with dulwich==0.9.5.
Converted some @staticmethod to @classmethod to remove class name coupling in method calls and constant references.
Updated requirements file to rely on setup.py for runtime dependencies.