http transport: further refactor credential handling Prepare credential handling to understand both git server and proxy server authentication.