Rework packet queue with pthreads.

 - Dedicated connection thread.
 - Separate queues for audio and video.
 - No more libdispatch in core. \o/