Expose clearSelection API

Let other modules clear the cell selection.
Also, only start rubberband when in command mode to avoid conflicts with codemirror selection.