json encode datetime as iso8601 string when returned in REST body.

This ensures that fields stored in the DB as mongo native dates and decoded as python *datetime*will be json encoded as iso8601 strings instead of ```{"$date": <int>}``` when returned in the REST API body.