Implement the email on submit as subscriber

- The workflow definition.xml proved to be terrible place to add this
  due to legacy limitations.
- By default have only the Workspace and Exposure interface subscriber
  to this.
- Since the states are now blanket, provide registry configuration to
  specify the final states that the email is triggered.
- Tests for the emails generated.

Should about complete the tracker item 3737.