code monitors: extract email action to its own component
Created by: limitedmage
In preparation for adding Slack and webhook actions to code monitors, the email action has to be extracted into its own component. Code monitors have also been made action type aware and actions can now be deleted (this required a small backend bugfix).
Part of #27163 (closed)