HPCC-12250 Allow pluggable interface to workunit creation

Initial work on splitting the workunit implementation so that Dali-specific code is isolated
Possibly, but note this is moved rather than new code. We can open a separate Jira to look into that change.