Refactored JWK implementation to provide jwk header in jws.