Only admin can do replicated writes to users dbs Also fix the fabric update type issue where we before_doc_update got the wrong type based on the ioq process dict settings. That setting is set by the internal replicator only and internal replicator works with shards directly not via fabric. While adding tests, clean up and switch them to use the nicer TDEF* macros in the rest of the test module.