Restart haproxy only if it is down over three cycles

haproxy is down for a very short period when an instance joins, and we dont want to restart then
Merge pull request #455 from fh/t/haproxy-restart

Restart haproxy only if it is down over three cycles