Sort inventory by item charges, use low-charge items first

FINALLY got it so that low-charge items will consistently be used in favor of high-charge items.

Doesn't do anything for matches vs. lighter use, though (since it also sorts by item ID).
Change X-Acto knife description

Closes #1451
Use the prescribed method for converting from a string literal to a char*
Use an explicitly unsigned char variable for array access
Remove the unused (and unlikely to be used) OutputText function
Use absolute-value based range calculation when circular distances is turned off.

If circular distances is on, use the old trig-based range calculation. 

If circular distances is off, use either the distance along the x axis or the distance along the y axis as the range value (whichever is bigger), because that's how non-Euclidean square-tile based systems work.
Changed trig_dist to rl_dist for range calculations

This should ensure both circular distances and roguelike distances use proper range calculations.
Signed off.
Batch of bugfixes.

Conflicts:
	SIGNOFF