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.