Add editor.getSelection method to grab currently selected text.

- This returns host implementation of the Selection object. You can find
  out more about this API on the HTML Editing API document:

  https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#selections