REST-23. Expose methods to read and write REST row models.

Move around logic dealing with reading and writing of REST row data into a
separate utility class.

reviewer: lsheng