Don't initialized media handling unless UPnP plugin is enabled
No need to run the media scanner unless we have a folder for photos
and/or videos defined.
We need to commit changes every now and then, or we don't get any
progress display.
Don't initialize scanner modules in the server, if they're only used in
the external scanner.