added layer dialog (gui only)
extracted status component and persistor stuff from main class
other refactorings