Fixed some memory leaks.
MAJOR REWORKING OF API AND INTERNAL LAYOUT.
Broke everything.
At present, only streaming from a regular file over ffmpeg to alsa is working.