Expose a serializable macaroon doc representation.
Update imports.