Improved autosave semantics.

Autosaves no longer occur if you are standing still, sleeping, etc.