grunt.log: add formatting support and implicitly cast msg to a string. Closes gh-703.

 * Added unit tests.
 * Bump error count on log.error() regardless of message.
 * Add support for casting and formatting.
 * Simplified log.debug.