Avoids setting plugin directory for workers to None through CLI if it hasn't been set for the parent process.
Changes the import source for CancelledException to pipeline
Removes unused bioformats import.
Avoids issues with events that are null for the headless multi-core execution.
Activates the javabridge before running the module. Not sure if this is really necessary, probably not.
Makes sure that the load module goes first when background running is activated (this is not being used now for the headless multi core though)
Adds the ability to start the Analysis.start() from run_pipeline_headless to use the multicore logic implemented for the GUI from the headless (command line) mode. Prepares the Workspace and Pipeline accordingly, populating the required fields on the HDF5 data object. Adds some path resolution methods that should refactored out, and sets the total number of workers to a fixed number just for debugging convenience (this should be set from the cli options).