Former-commit-id: d3c37c7159a92319759a33851669862a82cf1b28
Implement FAILOVER command, which coordinates failover between the server and one of its replicas.