Normalizing response.data across CORS and non CORS requests

When requests are resolved it is acceptable for xhr to have xhr.responeText and xhr.response an example would be an pdf file with content-type application/pdf where xhr.responseText is the string representation of a pdf while xhr.response is the byte array representing that data. The change 1782be9 is to correct this issue the change 12c5d7a is to write the data to the response from response.text since the first change broke angular $http for cors since the cors xhood did not set response.data which it does during non cors.