Remove StyledDocument stuff from styliser.

Put it behind a nice interface, so the styliser can work without it
and be tested, and other UIs don't have to use swing junk.
Merge pull request #232 from csmith/master

Remove StyledDocument stuff from styliser.