StaticServerDomain code cleanup, add request header info

Last code cleanup items from #3266. Also added request header data from HTTP server which includes the user-agent.