Refactored received command. Improved logging.
Merge pull request #170 from mozilla-services/received-commands-refactor

Refactored received command