WIP: History refactor
This MR will rework how the message list is create and how messages are displayed in the history, also how messages are load. It also simplifies grouping of messages. And hopefully also the new message divider will be easier code wise. It also makes a big step in the right direction, to abandon AppOP and to introduce a good data model.