This moves the JSON formatting of struct eventlog out of libsudo_iolog and into libsudo_eventlog where it belongs.