Detect whether a URL points to a GitHub/GitLab repo resource, and extract (host, namespace/owner, project/repo, ref, path) plus a canonical "raw" URL when possible. Designed for Autoplot-style "ForgeFileSystem" dispatch (GitHubFileSystem/GitLabFileSystem).
Main entry point.