Set limits on the number of headers that can be sent and their length.

This fixes: https://github.com/TheTorProject/ooni-probe/issues/304