Repl change and view directory

This PR is broken out from PR #590 (Word completion in REPL). This was requested by @glennblock.

Two new REPL commands are added:

:cd to change directory
:cwd to print current working directory.