Allow format to be specified for format().

  If an optional format-string is provided to format() this
 is used instead of the global setting.
  Use the CMessage::format() function for message headers.

  This has simplified drawing the header(s) of messages to be
 displayed.  We'll further extend this by allowing the user to
 select the headers, and their orders, via lua.