added upgrade handler; using go-proxy-protocol for proxy line; more debug output