Credential support for the socket transport.

Fixes joomla-framework/github-api#4

Currently if you specify a URL with credentials in it they are properly handled with the stream transport and the CURL transport but they are ignored by the socket transport.  This pull request fixes that.