Move primitive functions to their own file.
REPL implementation when run with no arguments.