Run agreement API and release checks on toc.xml packages
This relates to step 7d in the TOC workflow (#739 (closed)):
d) run agreement API checks (#481 (closed)) and release checks (#435 (closed)) as done for chapters.
For this task we need to cater for two scenarios:
- Automatic release when toc is send in cron job
- Manual release when the user selects "Updated published version"
(Note: the estimate here assumes the that check we do here are exactly the same as we do for the chapters. There is a pending comment to resolve about this in #739 (comment 70806))