Using abstract tree ui and fixing bugs.
Refectors code and removes trim which leads to errors.
Fixes conflicts with actual version
Merge pull request #213 from doleiynyk/2012-11-28_Add_site_panel

Rewrites the catalog tree panel and fixes some bugs