Move a lot of globals and SSL to HTTPServer