Added testing of SMTP settings to the settings page. Cleaned up some extraneous lines of JS and HTML.