Complete mixin for history filtering with pagination support. Returns either active OR deleted records based on include_deleted parameter.