[api] split classes. TreasureData_API should implement api methods only