Add support for paginated contact retrieval.

I always thought the convention was to raise a `StopIteration`, wondering why we are using `break` here.