adds retain globals fixes command line repl
fixes web repl
Merge pull request #216 from albertjan/retain-globals-config-setting

Retain globals config setting