deconstruction of ReverseProxyServlet to make it more composable.