kwrite: implement kTextEditor::Application,MainWindow
BUG: 392858 Differential Revision: https://phabricator.kde.org/D21409