Oops!
Maintain state of all staging directives in db.
Hmm, the online resource configuration changed ...
Move logic of completed (agent) StagingDirectives to the UM.
Also implement logic to change the state of the CU accordingly.
Change labels.
Some more macros.
Small cleanup.
Working output staging from transfer worker again.