Refactor Api::EmailsController and update README.