api: add User-Agent header
Created by: LawnGnome
This PR unconditionally changes the User-Agent to src-cli
, rather than the default Go user-agent, and adds the OS and architecture to src for support and product purposes by default. This can be disabled via an environment variable and/or flag, and is documented accordingly.
Closes sourcegraph/sourcegraph#15769.