Order of firing events
auto merge of #2526 : Manishearth/servo/event-order, r=Ms2ger

For the wpt test [event_load](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/event-load.htm)

Blocks #2525