Got mouse events to work- can drag/resize/click

can drag/resize/click on windows.  Can click on buttons.
Made it not redraw endlessly.
Had it not hang if mouse events come before initialized.