Switch to Optional for active frame in MainFrame.
Switch events to TextFrame.
Switch Window to TextFrame in the frame managers.
Remove some undeeded casts.
And another I missed.
Merge pull request #96 from greboid/window-textframe

Store TextFrames not Windows in the Swing UI