New lua functions & other changes

Position:isSightClear
Position:sendMagicEffect
Position:sendDistanceEffect
Creature:registerEvent

using registerMetaMethod(..., "__gc", ...) instead of declaring the
delete function in registerClass(...)