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

Review: https://reviews.apache.org/r/28723
Fixed a compilation issue in GCC 4.6.

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