fix bz 5904449 garbled console output on node 0.8+
fix bz 5904449 garbled console output on node 0.8+

if process.stdout is not a tty (i.e. a pipe) the
console.log interpreted the message as an object,
not a (colorized) string.

note: warn() & error() previously wrote to stdout,
now write to stderr.

cherry-picked from 3fd55c9f975bd44c59f5bfd8db7f89322010d981

Conflicts:
	lib/management/utils.js
yahoo/mojito,jeffblack360/mojito,yahoo/mojito,ooskapenaar/mojito,1950195/mojito,jeffblack360/mojito,ooskapenaar/mojito,ooskapenaar/mojito,ooskapenaar/mojito,1950195/mojito,1950195/mojito,yahoo/mojito,jeffblack360/mojito,jeffblack360/mojito