Add more error handling to the ec2 module, remove Python 2.6ism

This changes the ec2 module error handling to capture a few more error conditions, including missing credentials. Also removed some Python 2.6isms: except Exception as e -> except Exception, e.