Fix paging for Recent and Search templates and extend common paging control for use in all instances.