CORS support in IE8

By XDomainRequest. Small changes in code.