Merge pull request #196 from csmith/master

Moved StyledDocument et al into swing.
Switch events to User.
Fix GlobalWindow always being away.
Merge pull request #197 from greboid/tidying2

Switch events to User.
Support for core changes.