add add_repos.js
factor forM out; factor query_repos out (from add_repos and remove_repos)