String formatting

Added a sprintf formatted function for working on strings. Demonstrated it works with common/debug and I'll start moving other routines over to it piece meal so we can remove all the sprintf defines and have them in only StringUtil.

I then moved the string routines inside MiscFunctions into StringUtil