Implement filtering of duplicate publications (ADHI-4673)
It's not the cleanest solution, it is complicated by final/non-final split in histogram container and separate handling of final publications. There is a duplication of code that checks timestamps, should eventually be factored out.