Fixed bug in call to MutableLine.replace().
Move newend calc down a line.

Makes more sense there. OCD much?
Added constants for non-semantic styles.
Added text styles.

Text modes can extend TextMode and make use of said styles. We'll probably
expand this as I get a better handle on what sorts of things are reasonably
"standard" for text modes.