Enhance status bar to show length of selection

Show length of selection when one is present -- number of cols if within a single line, number of lines (or partial lines) if selection spans more than one.

Hoists out "\t" conversion logic from Editor.getCursorPos(). Add unit tests for it.

If we're really not into putting this in core, this seems doable as an extension too... just not nearly as cleanly.