Upgrades to allow swagger to be flexible in different environments.
More work...
Fix mail properties.
Workflow listener initial implementation.
Enhancement to metadata service.