Add base client class and Card encode/decode methods.