iso8601 dates for json

There's probably some cherry picking to do here, but I think the idea is pretty clear.