XHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONE

Fixes #3877
auto merge of #3917 : mukilan/servo/xhr-status-async, r=Manishearth

Fixes #3877