some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
In that case keep it. However, you can change the if statement to:
```lua
if ItemType(thing:getId()):isMovable() then
```
and remove the iType variable.