Abstract class to help resources that want to implement paging.