Savestate system finished, not tested yet

Parts of the savestate system, including global saved variables, audio
states, and cutscene states, are now completed. Only trivial testing has
so far been run. More comprehensive testing will commence as soon as
I write a more comprehensive testing environment.