Move chunk_queue stuff to own files chunk_queue.[ch].