A simple class to help paginate results sets from different sources.