More consistent API style for keybindings and editor action. Add JSDoc.