Update compat.lua

Added Teleport metatable and moved doCreateTeleport to compat.lua.
Merge pull request #971 from curruwilla/patch-4

Update compat.lua
Add string.trim function
/ban command now accepts second parameter, reason

Usage:
/ban Name, Reason
Merge pull request #972 from curruwilla/patch-5

Add string.trim function
Merge pull request #973 from curruwilla/patch-6

/ban command now accepts second parameter, reason
Minor fix (#974)