Improving node election algorithm.

Now it use the old role on zk, the current role on redis, as long as number os slaves and uptime to decide on the best node to elect.