Store inter-group linked-item relations with target, not source, library

User may not have write access to source library
Merge from Zotero 4.0 branch