Initial implementation of Thrift serializer. Much more work to be made.