Added new selection functions

Added three new selection-related functions:
"expandtoline" selects the cursor's entire line or lines if multiple cursors exist. If a selection (or more) is already made, the selection will be expanded to contain the entire lines.

"clearallranges" clears all ranges that may be selected.

"invertSelection" inverts all current selections, or if nothing is selected it should select all.