Add legacy panel classes for theme support

All panels need to support outdated theme selectors for the time being. We were attempting to add these classes on a per-package basis but that's onerous for package authors. It will be easier to just add them in core and remove them when the time comes.