InfiniteLoader: splitting out xhrOptions as a function

This allows extensions to override xhrOptions to provide custom objects to the
xhr() call.