added email config
simplify configuration.yml
make configuration.yml support ERB templating