[tools] testbot/cgi: Move SecureConnection() and MakeSecureURL() to PageBase.