Export ui_save() and ui_restore() from ui.c. Preparatory for upcoming change.