decouple cloudinary from mediaitem

[#54529250] required rewriting some tests and stuff