Added the EmailHandler, including tests for it and Configuration.