Update Startup.cs

Add support for custom proxy and user-agent