Improve Thrift API, remove deprecated and unneeded methods and fields