Moved handlers for commands into cli.ml

Ensures the list of handlers matches the list of commands.
Allow Python to ask the OCaml for user input

Needed to confirm keys on the console. Python can't read stdin
directly because that's the input channel from the OCaml.