Log interface refactor to use log.Logger (with WARNING/DEBUG prefixing)

Patch by @philips with additions by @chrissnell