New Z-Order System

Rewrite of the z-order system. Z-Order is now maintained by LayerModel.
Needs extensive testing. LayerViewer is almost feature complete.
(Missing is add-function)