Implement selection ranges and deletion of \n for TextInput.
auto merge of #4284 : ema-fox/servo/textinput_selection, r=jdm