Using dev/user to load the repl.
Refactoring hist related functions.