Prevent QML from deleting media objects when garbage collected.

QObjects returned from invokable methods are assumed to be owned by the
javascript engine unless otherwise specified and will be deleted during
garbage collection.  Mark media objects as having cpp ownership so this
doesn't happen.