This example shows how to use the CesiumExt.data.store.ImageryLayerTreeStore class:

Have a look at imageryLayerTree.js to see how this is done.