Update JSONAPI.php - fix errors

+ stream_context_create()
- "negation" for cURL detection