Make RequestId, SlotId, Nonce, PurcahseId distinct types. Add/modify conversions to support the distinct type (ABI encoding/decoding, JSON encoding, REST decoding). Update tests