Let panel applet use GLOBALFLAGS. Check for XKBrules from XKB extension and conditionally compile code using it.
Let ede-keyboard-conf uses setxkbmap for setting changes. ede-desktop foreign callback addopted for latest modification in edelib. ede-conf will display keyboard configuration.