added support for periodic saves

Enables periodic saving in the emulator when using a save slot.
Fixed a bug which could keep the cursor from properly scrolling to
the first entry in a menu.  Reset the submenus to their first spot when
hitting 'b' to back out of a menu.