Refactor message handlers to use command hash instead of switch statements
Merge pull request #111 from mlolson/message-handling

Refactor message handlers to use command hash instead of switch statemen...