Add circuit breakers on Server and OutputWriters
This shoudl help in the case where a server or a backend becomes unresponsive. The circuit breaker will open and no time will be wasted in trying to contact a node that is down.
fixes #565.
This is brilliant! What's missing to merge this PR?
@gquintana thanks for the kind words! Honestly, beside a rebase, I'm not sure what's missing... It might actually work as-is... (plus the comments you added). I mainly need to find time to get back to it. But feel free to take over!
If I remember correctly, the real missing piece is exposing the configuration as command line flags. Not that hard, but that part is also messy. We should at some point move to a real configuration file, there are too many CLI options already...