Fixups in pulse.

Add proper pause/unpause, and improve pa_write().