Cleanup organization of some window handling code.
Especially move various window-handling bits ouf of menus.c and util.c, where they have no business being. Create win_ops and win_util files for much of it, as well as moving some to other existing locations they better fit. Do a little light commenting.