Fix scan media issues
There are two issues with the "Scan Media" task
- Scanning a Directory doesn't discover new media files in the directory
- Scanning a file takes too long (about 1 second per file). This is a problem when looping over many files.
Suggested fix options:
- Option to scan files asynchronously. We don't need any output from the scan action to proceed
- Speed up synchronous file scan
- Fixing the directory scan to pick up new files inside as new media (e.g. by Google Photos)