DKIM signing for outgoing emails, cleaned-up

See #49 for details. The difference between this and #49 is that this branch contains only cherry-picked DKIM-related commits and nothing about permissive parser etc.
So, the patch is much smaller and easier to review.