Implement map saving and loading

Uses a fixed-width record mode to serialize map state to a file and
deserialize from the file. Not an actual game feature, just for testing.

Added some stopwatch timing - generating a world takes 30-100ms and
loading it from file takes 7ms.