Added JSON-serialization to entities returned by queries.
Changed name of deploy date in JSON-serialization.