Broker now sends valid JSON to the device
Merge branch 'broker' into device
Fix #1 #6 #7 #8 #9  Implemented funcionality for all referenced issues