Added email endpoint, readied for heroku.