add initial support for initial scrolling

One initial issue: this implements pagination for the patient results, but because the patient results are currently managed in a single collection, fetches of additional pages return unfiltered results; any filters (for numerator etc) will show up AFTER the results are in, meaning that the user won't see a full page if any of the results have been filtered out. This requires some thought about the design.