Add API to (temporarily) disable session saving
Disable session saving if we terminate before having restored it

Previously if TextMate had expired, we would terminate, which would cause the current session state to be saved, and since it hadn’t yet been restored, we would write out empty session state (and overwrite the user’s previous session state).