Make server sound thread optional

This patch makes the server-side sound channel thread optionnal, and exposes functions to handle channel traffic from the outside.