Delay the loading of the catalog tree config

With this commit the loading of the catalog tree config is delayed until after the layers config is received. This fixes bugs like #507 where we attempt to add layers to the map right after the loading of the catalog tree config.
Fix indent
Merge pull request #507 from geoadmin/fix_catalogtree

JavaScript error in catalog tree component (number 2)