Removes namespace switching comments from REPL history.
Adds preferences for REPL history.

* Preference for REPL history size.
* Preference for REPL history persistence schedule.
Fixes function naming and redundant comment.
Fixes error from rebase.