add BackspaceToBegin and DeleteToEnd methods

handy callbacks for editing the current line
skeleton of completion code

TODO: add UI elements for menu