adopt new mailgun api, v2

Our team is using node and mailgun, so I added new api support. Please check if this matched your design of this project and I can keep improve it.