Cleaner, Curl errors to client, fix headers to support gzip Fixes 99, Fixes 65