migrate dms on VFS API
db closing for DMS, use dlna_db API
Merge branch 'integration_resource_db' into integration
dlna_write_protocol_info uses dlna mode to set protocol info.

the mix between upnp_guess_media_profile and dlna_guess_media_profile was dangerous.