Kill globals

Kill the global functions registered in utils.lua, replacing them with a simple module. Added a linter that checks to make sure that no globals are being accessed accidentally. The linter takes almost a minute to run, so in the future we may want to turn it off if we notice builds are going slowly