Update index.js

Adjust mandrill api endpoint to use send-template.json and accept new argument for template.