fixup includes in headers, started as just config, but led to more

The changes in config required changes in ai/contexts which
cascaded, also many places were throwing game::game_error without
including its definition except from config.