Add Mailgun API integration

Mailgun module needs to be refactored