Some refactoring
Added support for converting video files to webm in backend, though I compiled an own version of ffmpeg, stock version does not seem to work.