Set correct email config for salesforce sync.

BB-1530
Strip blank spaces from last_name in salesforce sync.

Salesforce strips the fields before it does validation so we need to do
it as well.
Merge pull request #782 from benkonrath/general-bug-fixes

General bug fixes