Move these into classes so can use elsewhere
SMPT options move to config. Monolog can log to stderr
New constant COMPOSER_ROOT_DIR to allow for more flexible installs