Fix farming unloaded node crash
Remove API from player.lua

It's now in game_api.txt
Fix xpanes API
Enable dungeons by default
Clean up treegen code