I have proposed a project that would be a superset of your Master-Slave wikis over here [RFC] A TiddlyWiki hub wiki architecture, but its not getting much attention at this point.
If you try and reverse engineer the upgrade facility you may find your answer there. Upgrade primarily updates the core “plugin” and deals with some, not all, contention between the existing wiki and the new version.