Rework index_current_repo.py to use requests instead of pycurl

Also, support study fetches from an API instance running locally.