fix proxy failure semantics with regards to anonymous mode. add a unit test to make sure the anonymous mode flag has the correct behavior
test DHT in test_privacy as well
also test peer connections in test_privacy