Improved error handling in MailGun API.

 On branch master

	modified:   scripts/lib/mailgun_api.coffee