client: Ensure modal dialogs only block their associated main window
Create new window groups for each main window and composer window, so modal dialogs (about, file choosers, etc) don't block other windows.
Same as #932 (moved) but for all windows.
Fixes #1125 (closed)