Restructured code in preparation for more panels.
Headline panel is now a kind of its own.