Fix reset handling in fastexport module.
Add bug #
Support http.proxy setting in HttpGitClient.
Add support for 'http.useragent'.
Upload pack: We have to wait for the client to close the connection by itself.

Most versions of Git freakout if we close the connection ourselves,
and will not create an empty repository on clone.
Test for ProtocolGraphWalker if the repository is empty.
Update NEWS.
Apply lib2to3.fixes.fix_except
Apply lib2to3.fixes.fix_numliterals
Change relative imports to absolute.
Apply lib2to3.fixes.fix_apply
Apply some lib2to3.fixes.fix_idioms (exclued list(x).sort() -> sorted(x) changes.)
Apply lib2to3.fixes.tuple_params, and provied sensible names and docs.
Apply lib2to3.fixes.print
Use range instead of xrange, and list(range()).

Only do this for tests, as there a potential performance hit.
Use key functions rather than cmp functions.
Use collections.MutableMapping instead of UserDict.DictMixin
Use io.BytesIO rather than cStringIO.
Use email.parser rather than rfc822.
Use next(iter) instead of iter.next()