refactoring the audio test tool into a new toolpanel, and organizing things so that I can use most of the same code in the emulator itself.