Use console.warn for warnings/diagnostics

So as not to interfere with output (console.log) when using the command
line.

Closes #203.