[PATCH v3 23/32] cli: Split command-line-editing into its own file