Move all coordinator code into the process script, to prep for conversion to plugins.