Verify that revisions with identical content have the same rev id.

https://github.com/couchbase/couchbase-lite-java-core/issues/164
Merge pull request #324 from couchbase/cblite_java_issue_164

Verify that revisions with identical content have the same rev id.
Fixed: WebSocket _changes feed wouldn't connect over SSL

It would try to connect over plain HTTP and fail, because I put the
-startTLS: call too early.
Also, I enabled cert hostname verification, which is an important safe-
guard against MITM attacks.

Fixes #332
Fixes #333
Merge branch 'master' into release/1.0.0