introduced new method for sending events or do some actions after having received a command

http://rcondev.myjetbrains.com/youtrack/issue/RCSRV-45