Major: partly rewritten

Major:
-- Correctly handles SSL certificates and keys
-- Accepts globally trusted certificates ("cacert.pem")
-- Ability to act as a SSL Certificate Authority
-- Correctly handles SSL
-- Now lets the browser/user decide whether to use HTTPS or not. This
is a necessary feature due to the fact that not all servers support SSL
encryption. And there is no reason to encrypt the data yourself, if
your HTTPS proxy decrypts it before it reaches the goal.

Minor:
-- Cleaned code
-- Better debug feedback
-- Speedier
-- The code now sensibly moduled