Push site-related methods into get-sites.js

Also remove file-tree-weblearn.js (no longer used) and test.js