Remove global 'fs'
'clampIntRange is now a method of 'Tools' and no longer global
Deprecate 'toUserid' global
Replaced by 'toId'.
Merge pull request #836 from Slayer95/master

Remove some globals