Add world config option for difficulty. Refactor portal handling