Bug 899167 - Change 'SelectedText' to 'TextSelection' and move handling from browser.js to TextSelection.js, r=margaret