WIP: A blank struct init doesn't require explicitly listing all fields.
Use -g and -O0 for useful debug info for last_message.
WIP: made the event loop appear to work with a dummy do_client_query.