Overhaul menu management

Divided "g_menu_window" into four menu windows, "g_menu_layer" into four
menu layers, removed the "menu_back_single_click" and
"menu_click_config_provider" functions, and made some other adjustments
to menu management (more adjustments to come).