Sort header checks.
Use proper Reset syntax for updating a ScopedPtr.
Actually pass the SSL context on to the connections so they become
encrypted on demand.