Handle salutations with regexp special characters.

Fixes #1104.
Don't allow redirects to another host.
Add factory to support new specs.
Monkey patch actionmailer for CVE-2013-4389

http://seclists.org/oss-sec/2013/q4/118
Merge branch 'master' into bulgaria