Refactoring of CodeDialog, creating CodeDialogBundle. Refactoring of AbstractLayoutHandler, MenuHandler.