Add correct waits in dispatcher

Rollback commit: 3bbc0e3b8fa4b3496f72a473ab9ae99c4f90a214 dequeue method returns future, so it should have wait(). Also the action should have wait(). So we need two waits. This was breaking remote command.
Merge pull request #82 from telerik/vladimirov/fix-remote-emulator

Add correct waits in dispatcher