Adds date marshalling. Configures JSON marshalling of dates to be consistent with the XML one.