Basic save state functionality, no loading.

Not sure why this is removed, but really we shouldn't be checking a generated file into version control.