Add copyright notice in file headers.
random: Store random number generator state as a struct.
serf: WAIT FOR RESOURCE OUT state has no state vars.
player: Move construction of road segments to functions in player.c.

Was in viewport.c click event handler.
serf: Reformat counter_from_animation table.
map: Add map_is_deep_water(), and clarify the difference from MAP_DEEP_WATER().
game: Add function to determine if a road segment can be built.
player: Clean up road construction functions.

Clean up player_build_road_connect_flag() and make it static.
Clean up functions for building/removing road segments.
savegame: Implement textual save game format (fix #40).
Load save game specified on command line as text format.

If loading text format save fails, try to load as binary (compatible) save.
main: Add save function (CTRL+z), and autosave regularly.
Fix: Implement line reader since getline() not available everywhere.
Fix #45: Save STONECUTTER FREE WALKING state vars in save game.
Fix: When loading autosave, don't repeatedly try to save the game again.
Change to map position system that does not depend on interleaved, equal sized map data structs.
Merge map tile data into one struct (map_tile_t).
pqueue: Add generic priority queue implementation.

Based on implementation in audio.c.
audio: Use generic priority queue.
savegame: Fix loading of map positions in original save game.

Fix regression introduced with d4f2a4a4fead8fd380862b81b8bd8046a088017e when map positions changed.
viewport: Fix variable names in click handler.