Code cleanups and SSL debugging.