Add editing actions to EditerComponents.

It is not necessary to put all formatting actions in a separate components
because it might not be added or removed in the future.

Rename MainWindow to Core. It is more suitable for a library.