trivia

Consistently sort the modes in the code.
Refactor handling of header buttons

The central GsShell code now only hides these buttons,
and each refresh function is responsible for showing the
ones that are needed for its mode.