Use 'log'/'debug' helpers rather than 'console.log'.  Closes #32