Safely silence console messages by spying on console.{warn,error}

This eliminates *all* spurious console messages in `grunt test`, thanks to a great suggestion from @petehunt.