Merge pull request #8 from wagnert/master

Refacotring to use new MQ protocol
reformatting to fit coding style
Merge pull request #9 from wick-ed/master

reformatting to fit coding style