atari:gem: Restore mouse on exit. Process mouse status after all events are processed.

--HG--
branch : SDL-1.2
atari:gem: Read application ID so we can use it.

--HG--
branch : SDL-1.2
atari:gem: Generate a fake message to mark regularly when to stop processing events.

--HG--
branch : SDL-1.2