Fixing it to append a trailing slash in end
Don't risk missing events in gather_job_info

Seen with syndic, but in theory affects all setups. When a we call
gather_job_info if an event comes in for the main job we can discard the
event whilst we are looking for the gather_job_info event. To work
around I've made gather_job_info add events for the main job to the
pending_events list. get_event now always checks that list for events
matching it's tag

Conflicts:
	salt/utils/event.py
Pull out pending_events changes and reuse

PendingEventsBase implements all the pending_events queue management
Make both normal SaltEvent and raetevent.SaltEvent inherit from this to
standardise the get_event interface.
Update tests for event.SaltEvent (Couldn't find tests for
raetevent.SaltEvent)
Allow the VT tests to run on OSX
add user and signal args
Clean up apache.state example usage.
Get rid of unnecessary(?) _check_name.
Eliminate import of salt.utils.cloud.
Fixes the traceback when specifying raid_devices in raid.present
Improve the handling of errors during salt-ssh refresh of the thin client.
This corrects a syntax error for the sudo command, normally 'username -c' is associated with 'su'
Removing raid_devices option as it's no longer needed
Removing variables not needed. replacing values directly
Fix salt-ssh handling of python os.execv
Handle sudo when re-deploying the shim
Merge branch 'develop' of https://github.com/saltstack/salt into fix-raid_devices
use sftp to transfer files instead of scp

scp is required to be on both sides of the connection in order to work

└─╼ scp this.py salt:
bash: scp: command not found
lost connection

sftp does not, it is actually built directly into the openssh.

http://www.openssh.com/faq.html#3.7
http://www.openssh.com/faq.html#2.10
change back to scp, and use_sftp
document use_sftp
don't shadow kwargs in deploy_script