platform: refactoring in the sake of better API
IDEA-130853 (HTTP redirects in library downloader)
IDEA-132699 (HTTP redirects in source provider)