Prototype of JSON message broadcasting with unit test demonstration. Refactoring and cleanup.