Add api for setting the component layer, instead of open-coding the object data key, and use it.
While doing this, drop the get_mdi_zorder implementation that really should come from the window manager side. Dropping this saves some 500 lines.