Ensure that datetimes are isoformatted

Updated model processing to isoformat datetime objects
when creating dicts from models.

Change-Id: I3faded4e6ef5e7609fdd927ce33da92475af0a22
Closes-Bug: 1321394
Merge "Ensure that datetimes are isoformatted"