James D. Callahan III:
	- Removed an extra %s in a format call.
	- String, math, and table cleanups.
	- This function is no longer global. Yay.
	- Table fields and formatting cleanups. Variable name clarifications. Minor logic tweaks.
	- Get rid of upvalues for Blizzard functions.
	- Grab things from the localized _G. Renamed some variables. Minor cleanup.
	- Clean up some declarations for readability.
	- Upvalue some Lua API.
	- Minor string formatting cleanup.
	- Ensure that yellow and green are at least 0 and never nil.
	- Fixed ticket #265.
