Add layout definition test
applyTo needs be invoked after setModal and maximize

Otherwise, it would not be possible to change the size or
the "modality" of a window from within the style, because those
settings would get overwritten by the subsequent calls to
setModal and maximize.
Add all elements from the UIMenuMain to the main menu layout def
Add WIP UIController support (events currently fail to be invoked though)