Errors and warnings are printed to stderr.

Fixes https://github.com/aws/aws-cli/issues/820

cc @jamesls @danielgtaylor 
It's frowned upon to test through an internal API.  Unless there's a really good reason, the unittests should be using the public APIs of the objects under test.