Don't configure ActionMailer settings if they're already configured

Fixes #2855
fixes jstree ordering problem with jquery 1.9

Fixes #2728
ActionMailer::Base.smtp_settings in MailSettings spec