Paginated content API

Update the content API client to handle pagination of results.

This should be backward-compatible with non-paginated result sets.