Merge pull request #3388 from libgit2/cmn/smart-callbacks transport: provide a way to get the callbacks