scanner: add a way to prune the media directory scan.

If a ".mediaignore" file is present in a directory, the scan will ignore all regular files but will go through subdirectories.
If a ".mediaignoreall" file is present in a directory, the scan will skip this directory and all subdirectories.