This commit adds logging call to API, changes the name of set_callback
to set_cb_endpoint, adds a message type of each JSON-UDP message,
changes nid to overlay_id, fixes bug in getstate causing segfault