Remove deps of Protobuf

To simplify code, use Thrift as serialization solution.