Clean up logging and add a status file.

If the script aborts, the final status line is never printed.
Now a status line is printed (over written) to a status file so the latest
status (prior to failure) can be checked.

As of now, all Rachel conversions have been done.  The last few changes
have not been tested and may well have some syntax errors.