added email handler for monolog and added switches to framework.json to configure the error prompting