Implement world generator (from Minecraft alpha), and misc cleanup