Fix rate calculation

- Fix the bug: rate reset on every success request
- add some tests to check high level behaviour of circuit_breaker
- make rate information public through public method
This could be renamed to `start_of_time_window` or `time_window_beginning` since begin is a verb.