[layertree] Do not start editing in tree view too easily
[layertree] Only add layers to layer tree if the client wanted that
[layertree] Fix python issues with addLayer()