Require colors for logging errors
Send debug messages to stderr

Send debug messages to stderr to allow both errors and debug noise to
be filtered out (e.g. redirecting stderr).
Style fix for consitency