Improve logging for pulseaudio plugin

This patch series modifies some logging statements to add more useful information to the log file.
A memory leak is also fixed.