Added a ghetto minimize to tray thing.

I still don't do WPF or C#.

Also, the the resize fix I suggested is in the commit.  I know you want to use e.handled, so just change it if you even use this.