Adds simple html minify and beutify (body only) based on config entries.
Clean up the http class, and make it more memory efficient when using curl.