Refactoring and documenting of world.lua.
In particular World:isTileEmpty was wrongly documented.
Merge pull request #271 from Alberth289346/more_refactor.