Updated to CBL beta 2 API changes.
Merge branch 'beta2_api'

Conflicts:
	CouchChat/SyncManager.m
Updated for Couchbase Lite 1.0 API, and 64-bit compatibility