layerswitcher moved to the detailpanel. ...

Changed from one instance to one for every collection.
The next change will extract the layerswitcher to replace the layer dropdown box at the top of the details panel.
I can understand one blank line under the function declaration (still redundant though), but 2 is too much.