Added protobuf protocol for communicating persisted resources between
master and slave.

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