Extracting some parts of MainWindow::MainWindow into functions.
Adding a scroll area to contain the message list.