Ajax `url` option (when function) now called with same arguments and context as `data` option

Builds on #692.  The constructed URL may need to incorporate the information about the current query, for example if the URL includes the search terms directly in the path.