For environments where the PHP Curl extension is not enabled, it falls back to use http streams to make the api calls
Merge pull request #75 from ahsanity/http-stream-fallback

Fall back to use http stream when Curl module is not enabled
Changed error code for stream failure.