prep server for emon client

Factor json encoding/decoding functions back out of emond.c.
Add a pub socket and Cc: all data samples there.
add emon client
improve emon output