LDEV-1786: On very rare occasions, we've had Hibernate try to save the branching entries before saving the branching activity which throws an exception as the branch_activity_id is null. So force any branching activities to save first.
LDEV-1718 Reorganize learning page * The page needs to understand about tool sessions/groups. Learners should only see the comments and files added by members of their group (ie tool session) when the activity is grouped. Similarly, Learners should only see the tasks from authoring plus tasks added by members of their group.