Redirect more logging through new log framework.

Remove all remaining uses of `console`.  Made a couple of modules
fit the standard "module.exports is a constructor" pattern, which
let us factor out redundant parameters from method calls (and
efficiently share loggers).

Change-Id: Ib959b5d648bba87b65c4fe71c607d57e545bbeb7
Merge "Redirect more logging through new log framework."