Refactors Message Queue CLI module

Breaks out all messaging CLI commands. Also fixes a bug in the message queue client related to requests. This is relevant to #144.