Slightly more sensible error/msgbox handling
Implement loading/saving some more state data.

This is the final commit for android savegame compatibility.
Thanks to Andrew Church for explaining the new attributes
and their format.