Client-server command-resposne protocol worked out. Major cleanup to render.py. Now cleaning up gui.py (prev version moved to gui.py.backup.py, will be deleted when done).