pkg/blob: implement Go 1.2's encoding.BinaryMarshaler

Change-Id: Ic9fbbd4cdd99fbf19ed2467f9fc151c688ec048f