A huge round of changes to the C code that miraculously compiled AND ran on
the very first try...  This is about 75% of the total effort required to
get the new and improved automation scheme working...  Now just to properly
implement in the UI/Python part...