identity SDK: match spec better w/r/t handle normalization and extraction from DID doc alsoKnownAs (#1105)
- tries harder to find a valid handle in alsoKnownAs list (doesn't stop
at the first `at://` if it was not a valid handle)
- normalizes handles when extracting from DID docs / identities
- ensures that bi-directional handle comparisons are done with
normalized handles
- ensures that caching is done with normalized version of handles
- adds some tests for all this
authored by
bnewbold.net
and committed by