Some minor cleanup and adding connect-gzip support.