XDomainRequest now works

Fixed the detection of the XDomainRequest constructor.
Added timeout and progress event handlers; without these the request is not sent.