Pms

Bring UMS up to date with PMS

As always I left some things out, if anyone feels like merging them feel free. Like the new FFmpeg stuff with FFmpegbase and FFmpegprotocols.