add support for downcase-word, upcase-word and capitalise-word
Rework some of the new case-modifying commands to share more code, and
also to update the autosuggestion and syntax highlighting