Extracted thrift pool form media-api

Change-Id: I0a09e5a5c2b800b54e617061e01af848631cce82