break out categoryTreeFromJSON so that we can use it from ShopSense
Merge pull request #7 from PopSugar/categoryTreeFromJSON

break out categoryTreeFromJSON so that we can use it from ShopSense