Made newRev.parentRevID work in a validation block

Also, newRev.revisionID will consistently be nil for a newly-added revision,
instead of incorrectly being the parent’s revision ID. (It would be best if it were
the actual new revision ID, but that hasn’t yet been computed by the time the
validation block is called.)
For #233
Fixed FMDB memory leak, and removed a now-unused variable.

Leak was introduced in prior FMDB update on 1/24 (c2f6d7e).
Fixes #263.
CBLDocument.currentRevision should be nil after deleting doc

Fixes #265
Draconian thread-safety check for FMDatabase

People keep trying to call CBLDatabases on multiple threads and don’t understand the generic “database in use”
warnings. So I put in an explicit same-thread test that triggers an unblockable assertion failure with a very explicit
message about CBL thread safety.
Made CBLUITableSource.m more portable

Removed usages of MYUtilities so the source file will build in an external app project
with no dependencies other than public Couchbase Lite API. This helps developers who
want to copy the source to extend the class’s functionality.
Extended draconian thread-safety check to support dispatch queues.

If the CBLManager.dispatchQueue property has been set, databases will check for the
correct queue, _not_ the correct thread.
Tweaks the dynamic library install path
Merge branch 'master' of github.com:couchbase/couchbase-lite-ios
Oops, fixed compiler warning/error introduced in last commit.
Support for transforming/encoding revisions during replication

This enables encryption of documents on the server, for example.
Based on a patch from Alan McKean; thanks!
Fixes #253
Fixes a crash in CBLMultipartDocumentReader.m caused by the stream outliving the CBLMultipartDocumentReader that is its delegate. Solved by addiing a strong reference to the reader in its completion handler and breaking the retain loop in the end.
Merge branch 'master' of github.com:couchbase/couchbase-lite-ios