Move formattedText functionality out of rc file into script
Simplify formatText, eliminate ElementTree while only foreground is in
use