Take current circuit state from failure_state

- Pass configured failure threshold value and logger into
  `circuit_state` constructor
- If the current failure count (from the persistent failure state) is
  greater than the failure threshold, log a message and trip the breaker