Adding option to save and load state by mtime

Load by mtime: Load last state is expanded from 1 to 8 actions, for newest to oldest state

Save by mtime: Overwrite the oldest state (or use an empty slot if available)

The code to wait for a save to be written is necessary because the alternative would be to keep track of files in queue to be saved which would be unnecessarily complex

Adding remaining hardcoded state keys to hotkey dialog

Adding a program exit hotkey