add handling onload and onloadend correctly (for apps not only relying on readystatechange)
add handling onload and onloadend correctly (for apps not only relying on readystatechange)

tchakabam/xhr-shaper,tchakabam/xhr-shaper