[WIP] Proper Audio/Video Dumping

Screwed up the previous PR, replacing with new PR

Old notes: https://github.com/dolphin-emu/dolphin/pull/1183
Or what do you think about making a wrapper for libav/windows avi writer interface? So this file will be plattform independet.