Squashed 'scripts/upandaway/wicker/' changes from 5daa273..3c13f97

3c13f97 Added a test for worldgen

git-subtree-dir: scripts/upandaway/wicker
git-subtree-split: 3c13f97ba6a2cfdc3aee8afaf015a3a69c26f2d7
wicker update: code for worldgen checking

Call IsWorldgen() inside the wicker environment to know whether we are
in worldgen.
Did some structural work on worldgen