Use `debug` module instead of console.log.

Basically, give the consumer the ability to control debug message
output.
Merge pull request #1 from kirbysayshi/ksh/debug

Use `debug` module instead of console.log.