detect running from master in State.event method
detect running from master in State.event method

This changes `State.event` to detect whether the state that invoked `fire_event` is running on the master. This fixes an issue where the `fire_event` requisite doesn't work when being used in orchestration states.
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt