libcommon: Rebuild the game menu on engine reset

The game menu is now rebuilt following an engine reset. If the menu
was previously open it will be re-opened on the active page.

Todo: Remember the previously focused widget on the active page.