Use stream_context_create as fallback if cURL not installed

 - some systems won't have cURL installed, so we can use
   stream_context_create as a fallback
Merge pull request #2 from jerrykan/master

Use stream_context_create as fallback if cURL not installed