separated daemon and client into different bins
moved append_to_buffer helper func to utils.c