Clean up C++ API (pass in object instead of a zillion parameters). Add option to reject unauthorized TLS connections. Less verbose tests.