Very rough non-functional commit of the alerting plugin. Please be gentle. Original commit: elastic/x-pack-elasticsearch@98870d0778