cWorld: Rewritten spawn preparation.

It now supports pregeneration distance of any size and runs in two threads in parallel (generator / lighting).
Fixes #1597.
I know, but I'm actually thinking about changing the capitalization in the whole project more towards the Java-like conventions - Classes starting with capital letter, no `c` prefix, and functions starting with lowercase letter.