Allowed replicated log to do auto initialization.

Review: https://reviews.apache.org/r/18600
Fixed some flaky tests.
Added rate limiting to Metrics endpoint.

Review: https://reviews.apache.org/r/20539/