Add paging support to event query endpoint