Updated to Couchbase Lite.
Converted to ARC + modern syntax