Touch the etag on the primary table before all the transactions.  This will also act as a lock (prevent deadlock)
Add etag checking to tests
Merge pull request #818 from kaysoky/Release21_CredEtag

Stack-21 - Etags for credentials
[PLFM-2329 / PLFM-2318] Isolate wiki migration, pull out bridge, set up mirror between v1 and v2 tables
Merge branch 'develop' of https://github.com/Sage-Bionetworks/Synapse-Repository-Services into wikiMigration_mirrorBridge
Address PLFM-2179 by inserting 'rolling' to the files that are still being rolled over so that the files without the 'rolling' name can be picked up by dashboard for metrics.
Now also rolls over the batch even if the batch has only one file.
Fixes the problem with unexpected rollbacks for new users that have not signed the terms yet.
[PLFM-2329] Create DAO/Manager to mirror CRUD operations in V2
Edit comments / Small changes
Merge branch 'develop' of https://github.com/Sage-Bionetworks/Synapse-Repository-Services into wikiMigration_mirrorBridge
Small comment change
Small change
Merge pull request #829 from kaysoky/release-21

Stack-21 - new user password change fix
[PLFM-2318] Put V2 wiki tables back into the list of primary types
Small changes
Small change
Fix weird indentation
Extend the merge worker's interval to 1 hour.
Delete new mirroring DAO/Manager and reuse Migration DAOs