Switching editor to support and uses Modes (also switching some current features to Modes)

WIP
some fixes to get the colors working right on new system
Modes working