xhr : make the complete event more useful, add tests, add scala mapping