Refactor forth word registration and REPL.