Fix SSL connection errors with Java 1.7.
Addresses reviewer comments.
Merge pull request #26 from damonkohler/work

Fix SSL connection errors with Java 1.7.