Cleanup and logging
Bug Fix: Added layer add/remove event handling

Fixes issue where workspace dialog is not updated correctly when new
layers are added or removed.