Add isFirst and isLast to PagedQueryResult, close #25.