Modify CakeSocket and HttpSocket so that the "protocol" parameter can be used to specify which protocol to use for creating sockets. These are protcols in the php "[a-z]://" wrapper sense. I also modified the test for these two files respectively to accomodate these new changes.
Unrelated to this bug, I added a "head" function inside of HttpSocket to go along with the GET/POST/PUT/DELETE/PATCH combination that's already present. Came in handy for me for deciding if I wanted to hit a resource with HttpSocket or not.
Fix coding standard violations
Remove unneeded comment out line that I just saw in compare view on GH
Fix HttpSocket test to actually reset protocols for correct test. Modify HttpSocket so that Https with non-passed in protocol doesn't set it to tcp and fail test.
Test for new HEAD function inside HttpSocket
Fix spacing to conform to coding standards
Merge pull request #3706 from MelvinRoss/httpsocketheader

Add support for specifying protocol in Cakesocket/HttpSocket.  Add HEAD function to HttpSocket