Setting up conversion to more formats

Added base implementation for codecs interface, and implemented libmp3lame
codec interface.