Changed Drupal.services.call to properly handle file creation and print out debugging on non OK requests.