Make summary customizable, add DEBUG option

make DEBUG=1 to see JSON messages on stdout
json_msg.summary is now on the heap so we can add some attributes to it instead of a dumb message only.