Remote and Client Connection Keep-Alive support, corrected stream reading, removed flush calls, DNS caching, general cleanup