Hook XHR, allowing modification of all requests and responses