Move message filtering to C++
The filter callback is called very often (O(messages)). The current filter model shows some significant overhead in QML internals. Moving that to C++ makes it quite a bit faster.
Fix hiding replaced events
5993c1f6 accidentally switched from SpecialMarksRole to MessageRole which is not only slower but also completely wrong
Edited by Nicolas Fella