Added support for encoding in a web worker.
Added control to configure channels and samplerate. Fix shine encoder.