chase hs-jose api changes

This updates to hs-jose API as at 7c3c5f5.
Merge pull request #1 from frasertweedale/jose-api-changes

chase hs-jose api changes