Reference pagination
Created by: efritz
Update the getReferences method in the Xrepo database to accept and return a page number to limit the number of results that can be seen on a single page (and therefore the number of databases we need to open per request).
This also changes the return values of the query functions, for which basic-code-intel will need to match (there will be a symmetric PR in that project).