Less duplication by introducing a PagedRepresenter
Add specs for API relations.