Added 'metadata' to the replicated log to support log recovery (and
likely in the future log reconfiguration).

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/15799