Fixing a bunch of misc bugs, and simplifying error handling.
Fixed mail error handling and strengthened reporting.
Made server error message logging and display more comprehensive.
[gh-4] Commenting-out problematic code line till a fix can be made.