make mailgun api key optional
add clean version of agarrow's mandrill_valid branch