Errors and warnings are printed to stderr.

Fixes https://github.com/aws/aws-cli/issues/820

cc @jamesls @danielgtaylor 
With the newly added lines here, this method is now 62 lines long.  Let's split this up to make it easier to manage.