HPCC-12250 Allow pluggable interface to workunit creation

Initial work on splitting the workunit implementation so that Dali-specific code is isolated
I think this causes a -ve leak.  secMgr, secUser need to be linked rather than owned.  (Previously it called secMgr.set())