rename filter-content to filter-keys for consistency
factor out paging logic so it can be reused accross store implems