adding new cli script to rescan files

Starting point for a script based files and folder rescan script for the command line.

backport to stable5 before next release necessary 

@icewind1991 @karlitschek @butonic @blizzz @bartv2