Added support for JSON data answers handling

this would allow to do things like

$('#my-editable-element').bind(‘failure.rest-in-place', function(event,
data){
      console.log(“data error sent from server”, data);
    });