Merge pull request #6 from tryge/master

Fixes #4 Configure identity of a message hub
#7 refactor main loop to use a channel to signal an error in order to exit