Added various string formatting functions in cc_string.h.

Removed similar static string formatting functions from cc_assert.c.
Added cc_string tests.