Switched to a readline-based REPL for the CS interpreter

This gives the CLI history and cursor navigation when invoked from a terminal. It also fixes the order of continuation prompts when pasting in multiple lines.