Finish port of CIDER REPL functionality