Add authenticated TLS support to the client.
Merge pull request #1386 from brendandburns/auth

Add authenticated TLS support to the client.