EmailProvider: converted to a service.
ScopedConfiguration: a new set of test utilities to temporary change the configuration.