Removed _place_roads_on_map(), added first version of _mapgen__generate_roads().
Moved ObjectPlayer1Destination creations to _mapgen__generate_roads(), road tiles are now generated in larger batches.
_mapgen__generate_roads(): added some comments, starting_points[] now stores target_point id.
Removed _place_roads_on_map(), added first version of _mapgen__generate_roads().
Moved ObjectPlayer1Destination creations to _mapgen__generate_roads(), road tiles are now generated in larger batches.
_mapgen__generate_roads(): added some comments, starting_points[] now stores target_point id.
Rebased to contain master changes.

Merge branch 'dev-mapgen' of github.com:gheja/untitled13 into dev-mapgen
Added _array_pick_random_item(), moved ObjectPlayer1Switch generation to _mapgen__generate_roads(), implemented extra road creation to connect existing ones, added target and start point randomization.
Fine-tuned target positions, start positions, ObjectPlayer1Switch generations.
_mapgen__generate_roads(): ObjectPlayer1Switch are now placed on corners too.
reset_map(): removed diagonal roads while it is not supported.~
reset_map(): queues for player 1 are now generated according start_points.
Added _array_pick_item_by_seed(), modified reset_map() to use seed.
Added handling of "new level" flag on both client and server side, added map_seed.
_array_pick_item_by_seed(): fixed an overflow issue with too large seeds.
Made the world larger, shifted starting points and target points in reset_map().
Fixed the usage of static world dimensions.
reset_map(): added the second start_points set.
Merge pull request #10 from gheja/dev-mapgen

Implemented map/level generator (fixes #3), made some related minor fixes