Chain approval and submission

The submission is made threaded and locking.
All requests in the chain (that need to be part of the task) should have reached "submit" approval.
The batch is created and registered to chained request history, and request history.

 Changes are on top of #647 (merged locally)