fixes #17 Moved MailOptionsFactory to its own factory class, removing the hardcoded closure from config file. This allows config file to be serialized
Merge branch 'closure' into develop
Merge branch 'develop'