Add date en/decoding to JSON.

This is an experiment. Are we sure that the patching in PlominoUtils will
always happen before we use json?