headers option, tweak to error handling, return the deferred that $.ajax returns