URGENT models for node

Some fixes in models/Media so it's usable from node modules.

this is *required* for the new mosto tests to work, and that is required for integration with the new caspa version