Bug 931907 - Rewrote automatic-emails cron job to use elasticsearch.
Fixes bug 931907 - Added support for classifications to automatic-emails cron job.
Made the emails index configurable, to avoid data loss during tests.
Added a script to move email addresses from psql to elasticsearch.
little refactoring.
Fixed the integration test, hopefully.
fixed the email integration test
email is not stored twice in es anymore. addressed other nits.