Add a thrift utility for serializing and deserializing objects, and checkin update to thrift file.