filter/public path varnames more obvious; subfunc args more generic

Made variable names for FILTER_ and PUBLIC_ repos in the main()
more obvious so it's really clear that those directories are not
the original repo directory.
Made sub-function args more generic (e.g. dest_path > path)
to make those functions simpler.
filter by production status in addition to privacy level
sort json_files before returning list