Changed JSON service request from php file_get_contents to drupals drupal_http_request function
merged with github changes