Add support for paginated contact retrieval.

Where does this come from?

(I'd prefer to set the page size explicitly in the relevant tests if possible, but that doesn't have to block this PR.)