MT#7793 Add flapping filter.

Works, but needs improvement to filter also over file splits.
MT#7793 Improve flapping filter.

Make it work when records are split over multiple files too. So
we process the records ones, then write them to files afterwards.