Add load and saving a Layer Definition file. Fix #9688