libcommon: Continued remodeling savegame writing/reading

All high level map state write/read logic is performed by the new
MapStateWriter/MapStateReader classes.