mdp4: Cleanup and reorganization of header
Removed unused functions and separated panel-specific functions to allow building of a single overlay panel