HPCC-12250 Allow pluggable interface to workunit creation

Initial work on splitting the workunit implementation so that Dali-specific code is isolated
I wonder whether this should be a
```
conn->close(true); 
```

.. instead