Use dulwich.porcelain.tag for tagging.
Use dulwich.config.ConfigFile.
Remove custom config parser - call out to standard parser in dulwich instead.
Require newer version of Dulwich.