add a debugJES() function to the command window

The new debugJES() function returns the JESProgram instance, allowing
you to use the Command Window to debug JES from the inside.
(Some components could already be debugged this way, but only those
like JESConfig and JESResourceswhich register themselves as module
globals -- a surprisingly low number.)