Add CORS support through XDomainRequest on IE8 & IE9.
Add better error handling if something goes wrong during AJAX request.