Edit layer z-index management complete, needs documentation and tests.