Correctly synchronize referenced collections.
Review Request #119788 - Created Aug. 14, 2014 and updated
Modify: Make sure the referenced state is stored before we trigger the sync. Otherwise it's possible that we get a LIST that expectes the referenced state, before it's stored. Since the changes only become visible to other sessions after the transaction has been comitted, I moved the transactioncommit before the signals are emitted. LIST: list referenced collections to resources. Otherwise referenced collections are never synchronized resulting in no content.