Tweaks to keep the static analyzer from complaining about valid code
Fixed a bug in SSL server trust evaluation

(Discovered by the Clang static analyzer!)
Fixed an exception when closing db immediately after creating replication

By the time the replication started an instant later, the db was already
closed, so FMDB threw an exception when trying to query it.
(Discovered with new public-replication-API tests!)
Added some basic unit tests for the public CBLReplication class

For #94