Explain the basics of the HTTP/HTTPS protocol stack and how web sockets maintain persistent connections.