Backporting various fixes from salt.cloud into salt-cloud
Finish fixing up event_kwargs fixes
Fixing conflicts with using /tmp/ as the tmp_dir
Make sure that tmp_dir is owned by sudo user
Reverting _compat code
Fixing tmp logic
Merge pull request #898 from techhat/backport

Backporting various fixes from salt.cloud into salt-cloud