Add custom headers for email messages

See http://meta.discourse.org/t/custom-headers-in-emails-site-settings/7480
And add tests for empty string & null
Refactoring #1157
Merge pull request #1157 from abbat/email-custom-headers

Add custom headers for email messages