actions: Rework removedAssociations() logic

We now only return associations that have been removed for *every* given
action.
This also means that, in order to get backwards-compatible behaviour, we
need to pass ACTION_OPEN. If passing ACTION_ALL, the associations are
only considered removed if they have been removed for ACTION_OPEN,
ACTION_VIEW and ACTION_EDIT.