added MessageBus and use it in the PublishCommand

- [ ] @dachew 
- [ ] @drewburlingame