Update widget serializer/unserializer to allow custom serialization on a trait-by-trait basis.
Update widget serializer/unserializer to allow custom serialization on a trait-by-trait basis.

Serializers/unserializers are given as the trait metadata keys `to_json` and `from_json`.
ipython/ipython,ipython/ipython