Added classes to abstract away the https connections.