core interfaces Theme / Layer / LayerData / LayerQuery refactored