Update HttpSocket.php

Add 'allow_self_signed' SSL context option.
Update HttpSocketTest.php

Update tests.
Merge pull request #1316 from sarce/patch-2

Add 'ssl_allow_self_signed' option to SSL context in HttpSocket class.