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

Fixes #2855
fixes jstree ordering problem with jquery 1.9

Fixes #2728
Bump Money to 5.1.1

Contains a fix for this bug: https://github.com/RubyMoney/money/issues/271
ActionMailer::Base.smtp_settings in MailSettings spec
Use lazily_find_element in order_details_spec rather than sleep