Add set_projects_directory and get_projects_directory commands.

These let users set the projects directory from the command line,
which is useful if they don't have python-tkinter installed.