Implementing Marshaler and Unmarshaler interfaces for Macaroon and Caveat.

    cavJSON := caveatJSON{
        Location: cav.location,
        CID: cav.caveatId,
        VID: hex.EncodeToString(cav.verificationId),
     }