query as third parameter to ajax results callback 

for e.g. proper cache implementation it is necessary to have the complete query in the results callback of the ajax function. to not break backwards compatibility i added it as third parameter and did not replace query.page parameter
added query to function head jsdoc block
Merge pull request #2363 from thereloaded/master

query as third parameter to ajax results callback