RIFTSAW-544 Add pagination to history queries to avoid request timeout d...

...ue to retrieving too many instances