implemented jsonSerialize on modelrow
added toJson method to allow entire modelrow to be json_encoded.
update to id method on modelrow