Improve the email store plugin:

* Allow overwrite of data
* Clean up code
* Improve tests