Core/Filter/Pager: Add config.totalPages & modify filterEnd variable to include it. See #670