Add flag debug_network

Add debug_network flag which allows the HTTPS request and response
data to be shown for debugging purposes.