complete rehaul of libuni.py

switched from the plugin/mediafile classes to a unified encoder class