[#53] - fix for xhr crashes
[#53] - added log message
[#56] - half fix for catching 404 errors
[#53] - better error handling for proxy errors
[#53] - fixed up log message
[#56] - log on response instead of request
[#59] - fix for broken tests