added email endpoints
cleaning up the tests: it was the same response for each call anyway
Merge pull request #8 from dcunning/add-email-api

Add email API endpoint