Support paging in queries

When querying for a list of changes to sync, use the sortkey to
handle multiple pages of query results.  By default, Gerrit only
returns 500 results.

Change-Id: I12049b4dcfa796650099b9ba71377a5bcf3feae0