Move reloading code into curtsies Repl object