HPCC-12250 Allow pluggable interface to workunit creation

Initial work on splitting the workunit implementation so that Dali-specific code is isolated
@jakesmith a length prefixed version of this would save a clone here, and possibly in other places.