Use `debug` module instead of console.log.

Basically, give the consumer the ability to control debug message
output.