introduced json config in both applications

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
use JSON to message transmission

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
server: added wiringPi support

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>