Make stack refresh layer view when new layer is added
Unify indentation in tracing layer and add standard style header
Make tracing layer store opacity information
Layer control: always use up-to-date set of layers

Without an up-to-date layer reference, new and removed layers won't be
recognized by the controller. This commit let's every method that works
with layers retrieve the current set on it's own. This fixes issue #573.