src/gui/loop.c: Simple framework.
inc/gui/loop.h: Change loop API to simplify programming menus.