new optional option mailsubject to body executor control + unit test + X-CFEngine SMTP header

cherry-pick of dstam/core@22e8e1d23b95298971511df4754bfa91bc4a8995 and cdituri/core@d8152d0f459833c397fcf2f15ae7200a45d56c65 into current cfengine/core:master.