Added wav encoding capability. It's currently broken converting from 16bit to 8 or 32 (and probably for bitness conversion in general), and it's revealed that I need to handle volume better throughout the app; in particular increasing the number of channels with the SimpleMultiplexer causes very painful clipping in the new channels.