Remove API from player.lua

It's now in game_api.txt
Fix xpanes API
Enable dungeons by default
Clean up treegen code
Fix dye stuff, fixes #243
Merge remote-tracking branch 'upstream/master'