Migrate the tests to jstest.
Add a 'ca' option to the JS client for passing the certificate for secure servers.