Add mute switch per application in context menu.

Add a mute switch for each application in context menu and also some
logging code to help with debugging.