Serialize OpenID-related objects in JSON-backed sessions

This commit is MIT-licensed.

Fixes #49.