Add top-level token encoding methods.

Allows ClaimToken to receive an encoded claim token directly from, say,
a header and turn it into a raw token, or the reverse.