Remove unused QObject *parent from ItemsModel.
Refactoring: Move some class members from MainWindow to new Application class.