Proxy authentication

Added basic auth proxy authentication to the agent