WIP
Fallback promotable slave discovery mechanism
Merge pull request #24 from fanhattan/failover_fix

Failover fix