Don't cascade delete to jobs from resources. Require module before trying to use it in do_module.

Main code rev. 1945