Various world generation tweaks, fixes and refactoring

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>