Get all pages of results

Overly complicated way of getting all pages of results, so that clients don't have to mess with pages/params.