Add ajaxSuccess hook to the RESTAdapter

Previously there was no easy way to extract data from response headers
or to reject promises after a 200OK response.
why `detectInstance` over `json instanceof InvalidError` ?