Added network level error handling for XMLHttpRequest.
Better Blob constructor detection in tests.
Output detailed errors when running tests in PhantomJS.