Add `Config.httpOptions.xhrAsync` setting

Allows sending of synchronous HTTP requests in the browser
environment only.
Fix possible failure when error was reset in the middle of a retry event
Avoid some unsupported integration tests in phantomjs