XHR request passed to the `results` function

Hi! There was no way to get paging data in case it's sent in the response headers, so no good way to detect if there's more records to show inside the `results` function. This pull request adds the whole XHR object as the 4th argument of the `results` function.