MB-100: persist master events to file

Change-Id: I9512be57d67417d2ac7e0257cd0ed4d34a4c5336
Reviewed-on: http://review.couchbase.org/24037
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>