Serialize datetime objects by converting to/from ISO8601.

Summary:
Transaction log entries contain datetimes, and we want to be able to send them
over the wire.

Test Plan: Unit test added.

Reviewers: mg

Reviewed By: mg

Differential Revision: https://review.inboxapp.com/D114