Added ability to log errors to file and email - friendly user error message for HTTP requests