Fixed a bunch of concurrency issues. The core of the repl is completely async
now. Performance seems pretty good.