Loop CategoryTree optimisation

For a big catalogue (4 000 categories), without it takes about 85 000ms
to have the "product-edit" or "category-edit" pages.
With this optimisation we fall about 14 000ms
Merge pull request #884 from InformatiqueProg/2.0

Loop CategoryTree optimisation