Right now we use repl.pl to move slaves around:
ie: when a master failover is needed, we use it to move all the slaves under the new master.
However, this script doesn't work when the master is unavailable.
It would be a good start to either refactor repl.pl or create a new script that could move slaves under a different host when the master is unavailable.
ie: master has crashed and we have to move all the slaves to replicate from the candidate master during an emergency.