Support flattened JWS serialization

Fixes #1.