Split EOF handling up from other error handling
Remove Coolline special-casing
Factor out set_completion_proc method
Refactor error handling into separate methods
Pass prompt into read from repl
Factor out fix_indentation
Minor refactoring of #repl