binarystore: Add ReadOnly Mode

Add Read Only mode to the binary store. In this mode,
all blobs are not writable, no new blobs can be created and
the storage protobuf can't be modified in any way.

Also added simple API for reading/examining blob store
without modifying it.

Signed-off-by: Maksym Sloyko <maxims@google.com>
Change-Id: I12e3473351be98820d8e5df1b71a6d43699aa671
diff --git a/binarystore_mock.hpp b/binarystore_mock.hpp
index 8f60ebe..fa6c787 100644
--- a/binarystore_mock.hpp
+++ b/binarystore_mock.hpp
@@ -51,6 +51,11 @@
     MOCK_METHOD0(close, bool());
     MOCK_METHOD1(stat, bool(blobs::BlobMeta* meta));
 
+    std::vector<uint8_t> readBlob(const std::string& blobId) const override
+    {
+        return real_store_.readBlob(blobId);
+    }
+
   private:
     BinaryStore real_store_;
 };