Cocoa adapter consolidation

This is in preparation for some kind of more general mpgl backend that allows passing an IOSurface or shared GL texture through the client API. I needed a common_cocoa.h that didn't involve the existing MPV adapter code, and ended up moving some things around. Just soliciting opinions on whether this reorg makes sense.