More Lua functions

Item:isContainer() / Container:isContainer()
Item:getParent()
Item:getTopParent()
Container:getItemCountById() / Tile:getItemCountById()
Creature:getParent()
Player:getContainerId()
Player:getContainerById()
Player:getContainerIndex()
Small changes

Return true if item:getParent() or item:getTopParent() has a virtual
cylinder.
Defined weapon types in Lua

Use them with itemType:getWeaponType()
Added a few functions to global.lua
WEAPON_DIST was also changed to WEAPON_DISTANCE
Small cleanup
Fix
Revert "Small cleanup"

This reverts commit ea46fc0be0f6a1e9b464340bf2a2819d81797653.
Merge pull request #622 from dalkon/master

More Lua functions