Move PagedQueryResult to queries module, close #27.