Fixed a typo in Auras.lua resulting in a weird call to a global d function.
Localized most globals and fixed a leaked global.