Catch IOError when trying to sys.stdout.flush()

This doesn't work in pythonw in Windows.
Make sure all sys.stdout/stderr messages are done with logging

I didn't fix the one in the cli module for confirm, since that won't work when
sys.stdout doesn't work anyway.
Update CHANGELOG
Merge branch 'master' of github.com:conda/conda