Emit a session resize event whenever the window resizes.
Reposition windows and the menus on resize.
Fixes #94 and fixes #534.