I started to work on the layers widget. At the moment only the add layer dialog and remove option are implemented.
This will allow us to select layers and use a selectedLayer function instead of layerByName which does not guarantee the layer existence.