Update to pass x-smtpapi parameters as json

Fixes #16