def peer is a method that gets repeated a lot in modules, so we should have it in the tcp mixin. This commit also clears a few modules that use the HttpClient mixin with def peer.
This fixes the following: * nil return value checks * handle missing X-Jenkins-CLI-Port scenario more properly * proper HTTP path normalization
CVE-2015-8103